<extend name="Public:base" />
<block name="main">
	<script type="text/javascript" src="__PUBLIC__/artDialog/artDialog.source.js?skin=default"></script>
	<script type="text/javascript" src="__PUBLIC__/artDialog/iframeTools.js"></script> 
	<!-- Validform_v5.3.2验证框架 -->
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/Validform/css/Validform_v5.3.2.css"/>
	<script type="text/javascript" src="__PUBLIC__/Validform/js/Validform_v5.3.2_min.js"></script>
	<script type="text/javascript">
		$(function() {
			var myform=$("#myForm").Validform({
				tiptype:3,
				label:".label",
				showAllError:true,
				postonce:true,//开启二次提交防御
				ajaxPost:false,
				beforeSubmit:function(curform) {
					//在验证成功后，表单提交前执行的函数，curform参数是当前表单对象。
					lockScreen();
					alert("here");
				},
				callback:function(data){
					$.Hidemsg();
					alert("there");
				}
			});
			myform.addRule([{$verify_string}]);
		});
	</script>
	<style>
		label {
			display: inline-block;
			max-width: 100%;
			margin-bottom: 5px;
			font-weight: normal;
			padding-left: 7px;
			cursor: pointer;
		}
	</style>
		<div class="row">
			<div class="col-md-12">
				<div class="panel panel-default mt-10">
					<div class="panel-body">
						<div class="row">
							<div class="col-md-12">
								<div class="col-xs-12 col-md-12 module-title text-center" ><h1>{$question_info.title}</h1></div>
							</div>
						</div>
						<notempty name="question_info.intro">
							<div class="manageMenu">
								<p class="">{$question_info.intro}</p>
							</div>
						</notempty>
						<form name="myForm" id="myForm" action="__APP__?g=Index&m=Form&a=itemValue&id={$Think.request.formid}" method="post" enctype="multipart/form-data">
							<!-- 显示已添加测验题开始-->
							<input type="hidden" name="formid" value="{$Think.request.formid}" />
							<div class="block_{$Think.request.formid} mt-20">
								<volist name="test_data.item_list" id="vo" key="k">
									<eq name="vo.item_type" value="select">
										<!-- 选择题 -->
										<include file="select_view" />
									</eq>
									<eq name="vo.item_type" value="affix">
										<!-- 附件题 -->
										<include file="affix_view" />
									</eq>
									<eq name="vo.item_type" value="blank">
										<!-- 填空题 -->
										<include file="blank_view" />
									</eq>
								</volist>
							</div>
							<div class="clear"></div>
							<div class="tc mt-10">
								<input type="submit" class="btn btn-success btn-outlined active" value="提交问卷" />
							</div>
						</form>
						<!-- 显示已添加测验题结束-->
						<div class="clear"></div>
					</div>
				</div>
			</div>
		</div>
</block>